package com.study.csc.a07threadmethod4;




/**
 * @author csc
 * @Date 2023/10/18 16:29
 * @PackageName:com.study.csc.a05threadmethod2
 * @ClassName: ThreadDemo
 * @Description: TODO
 * @Version 1.0
 */
public class ThreadDemo {

    public static void main(String[] args) {

        /*
            public static void yield()    | 出让线程/礼让线程

        */

       MyThread t1 = new MyThread();

       MyThread t2 = new MyThread();

        t1.setName("飞机");
        t2.setName("坦克");

        //开启线程
        t1.start();
        t2.start();

    }

}
